﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using CrossLayerCommunication.FluentValidation;

namespace UnitTest.FluentValidation
{
    [TestClass]
    public class TestDefaultValue
    {
        [TestMethod]
        public void TestIsDefault()
        {
            int defaultValue = 0,
                value = 10;

            Assert.IsTrue(defaultValue.TestingFluentValidation().IsDefault().ValidationWasSuccessful);
            Assert.IsFalse(value.TestingFluentValidation().IsDefault().ValidationWasSuccessful);
        }

        [TestMethod]
        public void TestIsNotDefault()
        {
            int defaultValue = 0,
                value = 10;

            Assert.IsFalse(defaultValue.TestingFluentValidation().IsNotDefault().ValidationWasSuccessful);
            Assert.IsTrue(value.TestingFluentValidation().IsNotDefault().ValidationWasSuccessful);
        }
    }
}
